﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class DatabaseConnection
    {
        private string connectionString;
        private TimeSpan timeout;


        public DatabaseConnection(string connectionString, TimeSpan timeout)
        {
            this.timeout = timeout;
            ConnectionString = connectionString;
        }
        public string ConnectionString
        {
            get { return connectionString; }
            set {
                if (String.IsNullOrEmpty(value))
                    throw new ArgumentException();
                connectionString = value; }
        }
        public TimeSpan Timeout
            {get { return timeout; }
            set { timeout = value; }
            }
    }
}
